package com.bugpool.leilema.freamwork.configuration;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import org.springframework.stereotype.Component;

/**
 * @author: wh
 * @create: 2022-08-12 17:21
 * @description id生成策略修改
 **/
@Component
public class CustomerIdGenerator implements IdentifierGenerator {
    @Override
    public Number nextId(Object entity) {
        return IdGenerator.generateId();
    }
}
